import request from '@/utils/request'

// 查询股票列表列表
export function listBasic(query) {
  return request({
    url: '/stock/basic/list',
    method: 'get',
    params: query
  })
}

// 查询股票列表详细
export function getBasic(id) {
  return request({
    url: '/stock/basic/getById/' + id,
    method: 'get'
  })
}

// 新增股票列表
export function addBasic(data) {
  return request({
    url: '/stock/basic/add',
    method: 'post',
    data: data
  })
}

// 修改股票列表
export function updateBasic(data) {
  return request({
    url: '/stock/basic/update',
    method: 'put',
    data: data
  })
}

// 删除股票列表
export function delBasic(id) {
  return request({
    url: '/stock/basic/delete/' + id,
    method: 'delete'
  })
}

// 导入股票列表
export function importBasic(data) {
    return request({
      url: '/stock/basic/import',
      method: 'post',
      data: data
    })
}